﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebSite.Models.PayQueryModel>" %>
<%@ Import Namespace="WebSite.Models" %>
<%@ Import Namespace="WebSite.App_Code" %>
<%@ Import Namespace="WebSite.App_Data" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	PayQuery
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <style type="text/css">
    
    .List
    {
         background-color:White;
    }
     
    .List .header td
    {
        border:2px solid #385D8A;
        border-left:none;
        white-space:nowrap;
        padding:5px;
        background-color:#4F81BD;
        color:White;
    }
    
    .List .body td
    {
        border:2px solid #385D8A;
        border-top:none;
        border-left:none;
        white-space:nowrap;
        padding:5px;
    }
    
    .List .header .first
    {
        border-left:2px solid #385D8A;
        white-space:nowrap;
        padding:5px;
    }
    
    .List .header .hiden
    {
        background-color:#595959;
    }
    
    .List .body .first
    {
        border-left:2px solid #385D8A;
        white-space:nowrap;
        padding:5px;
    }
    
    .List .header .blank, .List .body .blank
    {
        background-color:#D8E5D3;
        border-top:none;
        border-bottom:none;
    }
    
    .List .header .warning
    {
        background-color:#C0504D;
    }
    
    </style>

    <% Html.BeginForm(); %>

    <table>        
    <tr>
        <td>编号</td>
        <td><%=Html.TextBoxFor(model => model.QueryFilter.PayNo, new { @class = "budget-txt-no-01" })%></td>
        <td>结算日期</td>
        <td><%=Html.TextBoxFor(model => model.QueryFilter.PayDateBegin, new { @class = "budget-txt-no-01" })%></td>
        <td>~</td>
        <td><%=Html.TextBoxFor(model => model.QueryFilter.PayDateEnd, new { @class = "budget-txt-no-01" })%></td>
    </tr>
    <tr>
        <td>结算单位</td>
        <td><%=Html.DropDownListFor(model => model.QueryFilter.DepartmentID, Model.DS_Department) %></td>
        <td>项目负责人</td>
        <td><%=Html.TextBoxFor(model => model.QueryFilter.PjPic, new { @class = "budget-txt-no-01" })%></td>
    </tr>
    <tr>
        <td>项目名称</td>
        <td><%=Html.TextBoxFor(model => model.QueryFilter.PjName, new { @class = "budget-txt-no-01" })%></td>
        <td>项目代号</td>
        <td><%=Html.TextBoxFor(model => model.QueryFilter.PjCode, new { @class = "budget-txt-no-01" })%></td>
    </tr>
    <tr>
        <td>会计科目</td>
        <td><%=Html.DropDownListFor(model => model.QueryFilter.AccountCode, Model.DS_AS )%></td>
        <td>金额</td>
        <td><%=Html.TextBoxFor(model => model.QueryFilter.Amount, new { @class = "budget-txt-no-01" })%></td>
    </tr>
    <tr>
        <td>分类</td>
        <td><%=Html.DropDownListFor(model => model.QueryFilter.PayCategory, Model.DS_PayC )%></td>
        <td>分类金额</td>
        <td><%=Html.TextBoxFor(model => model.QueryFilter.CategoryAmount, new { @class = "budget-txt-no-01" })%></td>
    </tr>
    <tr>
        <td>摘要</td>
        <td><%=Html.TextBoxFor(model => model.QueryFilter.Comment, new { @class = "budget-txt-no-01" })%></td>
    </tr>
    <tr>
        <td>状态</td>
        <td><%=Html.DropDownListFor(model => model.QueryFilter.PayStatus, Model.DS_PayS)%></td>
    </tr>
    <tr>
        <td>备注</td>
        <td><%=Html.TextBoxFor(model => model.QueryFilter.Rem, new { @class = "budget-txt-no-01" })%></td>
    </tr>
</table>

    <input type="submit" value="查询" />

    <table border="0" cellpadding="0" cellspacing="0" class="List" id="QueryTable">        
        <tr class="header">
            <td class="first">编号</td>
			<td>结算单位</td>
			<td>结算日期</td>	
			<td>状态</td>
			<td>现金付</td>
			<td>银行付</td>
			<td>转账</td>
			<td>POS</td>
			<td>收款-现金</td>
			<td>收款-银行</td>
			<td>还款-现金</td>
			<td>还款-银行</td>
			<td>备注</td>
    </tr>
    <% foreach (vw_Pay oItem in Model.QueryResult) { %>
    <tr class="body">
        <td class="first"><%=oItem.SN %></td>
		<td><%=oItem.DepartmentName %></td>
        <td><%=oItem.PayDate %></td>
        <td><%=oItem.PayStatusName %></td>
        <td><%=oItem.PayCash %></td>
        <td><%=oItem.PayBank %></td>
        <td><%=oItem.Transfer %></td>
        <td><%=oItem.Pos %></td>
        <td><%=oItem.CollectCash %></td>
        <td><%=oItem.CollectBank %></td>
        <td><%=oItem.RepayCash %></td>
        <td><%=oItem.RepayBank %></td>
        <td><%=oItem.Rem %></td>
    </tr>
    <% } %>
    </table>

    <% Html.EndForm(); %>

</asp:Content>
